package com.libo.homework2


import scala.collection.mutable

class User(var name: String, var score:mutable.ArrayBuffer[Int] = mutable.ArrayBuffer(0, 0, 0, 0)) {


  def showFirst (cho: Int) = {
    cho + 1 match {
      case 1 => "剪刀"
      case 2 => "石头"
      case 3 => "布"
      case _ => {
        println("输入不规范，默认出布！！")
        "布"
      }
    }
  }


}
